package edu.sctu.zcy.month201505.subwaysystem.V1;


import java.util.Scanner;

/**
 * Created by user24 on 2015/5/31.
 */
public class ProgramEntry {

    public static void main(String[] args) {

        Scanner siteInfo = new Scanner(System.in);
        String inceptionPoint; //起点站
        String terminus;   //终点站

        for (int i = 0; i < 10 ; i++) {

            PassengerInfo passengerInfo = new PassengerInfo();
            passengerInfo.getPassenger(i);

            System.out.println("请输入起点位置：");
            inceptionPoint = siteInfo.next();
            System.out.println("请输入终点位置：");
            terminus = siteInfo.next();

            SubwayStation subwayStation = new SubwayStation();
            subwayStation.securityCheck(i);

            if(passengerInfo.setPassengerInfos(i)[i].subwayCard ) {

                subwayStation.cardReader();
                subwayStation.deductionRules(inceptionPoint, terminus);
            }


            System.out.println();


        }



    }
}
